package com.restkeeper.operator.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.restkeeper.operator.entity.EnterpriseAccount;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * packageName com.restkeeper.operator.mapper
 *
 * @author 邵一宸
 * @version JDK 17
 * @className EnterpriseAccountMapper
 * @date 2024/7/26
 * @description TODO
 */
public interface EnterpriseAccountMapper extends BaseMapper<EnterpriseAccount> {
    /**
     * 数据还原
     * @param id
     * @return
     */
    @Update("update t_enterprise_account set is_deleted=0 where enterprise_id=#{id} and is_deleted=1")
    boolean recovery(@Param("id") String id);
}